//
//  XYJFSModel.m
//  徙游记-01
//
//  Created by hcios on 2017/7/14.
//  Copyright © 2017年 鹿林. All rights reserved.
//

#import "XYJFSModel.h"

@implementation XYJFSModel

-(instancetype)initWithDict:(NSDictionary *)dict{
    if (self = [super init]) {
        _fs_id = numberToString(dict[@"id"]);
        _fs_name = NonEmptyString(dict[@"name"]);
        _fs_latest_publish_trip_id = numberToString(dict[@"latest_publish_trip_id"]);
        _fs_latest_publish_trip_name = NonEmptyString(dict[@"latest_publish_trip_name"]);
        _fs_image = NonEmptyString(dict[@"image"]);
    }
    return self;
}


-(instancetype)initWithGZDict:(NSDictionary *)dict{
    if (self = [super init]) {
        _fs_id = numberToString(dict[@"id"]);
        _fs_name = NonEmptyString(dict[@"name"]);
        _fs_image = NonEmptyString(dict[@"image"]);
        _fs_trips_count = numberToString(dict[@"trips_count"]);
    }
    return self;
}

@end
